import { getRole } from "@/utils/user";
const vHasRoleDirective = {
  mounted(el:any, binding: any) {
    const roles = binding.value;
    const role = getRole();
    if (!roles.includes(role)) {
      el.style.display = 'none';
    }
  },
}

export default vHasRoleDirective